package vn.wallet.app.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import vn.wallet.app.dao.ICategoryDAO;
import vn.wallet.app.domain.Category;

@Repository
public class CategoryDAO extends GenericDAO<Category> implements ICategoryDAO {

	public CategoryDAO() {
		super(Category.class);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Category> getByName(String name) throws Exception {
		return super.executeQuery("from Category where name = :name", "name", name);
	}

	@Override
	public List<Category> findByExample(Category obj) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Category> search() throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
